package com.sgb.kjwl.api.service;

import com.sgb.kjwl.model.entity.BidEntity;
import com.sgb.kjwl.model.entity.BidInvitationListEntity;
import com.sgb.kjwl.model.entity.BidListEntity;
import com.swgk.core.base.model.entity.ListResponse;
import com.swgk.core.base.model.entity.BaseEntity;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

public interface BidAPI {

    //参与投标的列表
    @FormUrlEncoded
    @POST("v1/app/user/recruitment/getBiddingList")
    Call<BaseEntity<ListResponse<List<BidListEntity>>>> getBidList(@Field("pageNum") int pageNum, @Field("pageSize") int pageSize, @Field("type") int type);

    //投标邀请
    @FormUrlEncoded
    @POST("v1/app/user/recruitment/getBiddingInviteList")
    Call<BaseEntity<ListResponse<List<BidInvitationListEntity>>>> getBidInvitationList(@Field("pageNum") int pageNum, @Field("pageSize") int pageSize, @Field("type") int type);

    //获取项目列表——材料
    @FormUrlEncoded
    @POST("v1/app/user/recruitment/getMaterialOfferList")
    Call<BaseEntity<ListResponse<List<BidEntity>>>> getMaterialList(@Field("pageNum") int pageNum, @Field("pageSize") int pageSize);

    //获取项目列表——机械
    @FormUrlEncoded
    @POST("v1/app/user/recruitment/getMachineOfferList")
    Call<BaseEntity<ListResponse<List<BidEntity>>>> getMachineList(@Field("pageNum") int pageNum, @Field("pageSize") int pageSize);

    //获取项目列表——工程
    @FormUrlEncoded
    @POST("v1/app/user/recruitment/getQuantitiesList")
    Call<BaseEntity<ListResponse<List<BidEntity>>>> getGcList(@Field("pageNum") int pageNum, @Field("pageSize") int pageSize);

    //获取项目列表——劳务
    @FormUrlEncoded
    @POST("v1/app/user/recruitment/getLaborOfferList")
    Call<BaseEntity<ListResponse<List<BidEntity>>>> getLaborList(@Field("pageNum") int pageNum, @Field("pageSize") int pageSize);
}
